package com.beordie.dao;

import com.beordie.model.Grade;

import java.sql.SQLException;
import java.util.List;

/**
 * @Classname IGradeDao
 * @Description TODO
 * @Date 2021/6/8 12:24
 * @Created 30500
 */
public interface IGradeDao {

    /**
     * @Classname IGradeDao
     * @Description 查询所有的班级信息
     * @Date 2021/6/8 12:44
     * @Created 30500
     */
    public List<Grade> getAll() throws SQLException;

    /**
     * @description 通过班级名查找班级的 ID
     * @author 30500
     * @date 2021/6/10 23:17
     * @type [java.lang.String]
     * @return int
     */
    public int getGradeByName(String gradeName);
}
